package highTech.reflect;

public class ReflectTest2 {

	public static void main(String[] args) throws ClassNotFoundException {
		String str1="abc";
		Class cls1=String.class;
		Class cls2=str1.getClass();
		Class cls3=Class.forName("java.lang.String");
		
		//����һ���ֽ���
		System.out.println(cls1==cls2);
		System.out.println(cls1==cls3);
		
		System.out.println(cls1.isPrimitive());//�Ƿ��ǻ�����
		System.out.println(int.class.isPrimitive());
		
		System.out.println(int.class == Integer.class);//false
		System.out.println(int.class == Integer.TYPE);//true
		
		System.out.println(int[].class.isPrimitive());//false
		System.out.println(int[].class.isArray());//true
	}
}
